pp108 : getRow() Method

getRow() Method


This method returns the corresponding row object of a passed parameter.

Syntax


xgridId.getRow( iRow )

Parameters

Parameter Description
iRow Required. Identifier of the row, which can be:
Integer the index of the row, where index=1 is the first row
XML node the rowData node of a row
Row object the XGrid row object


Return Value


Returns a row object. For details, see row object. Returns null when the row is not found.

Remark


In combination withgetFirstRow(),getPreviousRow(),getRow(),getNextRow(), andgetLastRow(), it is possible to traverse through all the rows. All these methods return a row object that can be used as a parameter for this method.

Example


To view an example, see getFirstRow().

See Also


xgrid, getFirstRow(), getPreviousRow(), getNextRow(), getLastRow(), row object, cell object